package com.wswy.wyjk.ui.common

import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import com.raft.framework.base.RFBaseFragment
import com.wswy.wyjk.R
import kotlinx.android.synthetic.main.fragment_list.*

abstract class BaseListFragment : RFBaseFragment() {

    override fun getContentLayoutId(): Int {
        return R.layout.fragment_list
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)

        recyclerView.layoutManager = LinearLayoutManager(requireContext())

        onInit(recyclerView)

    }


    abstract fun onInit(recyclerView: RecyclerView)

}